/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2024-12-09 20:49:50
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2025-02-05 17:09:27
 * @FilePath: /vue-element-admin/src/api/financialManagement.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'


export function getListQuery(query) {
  return request({
    url: '/retailFinanceTrade/listQuery',
    method: 'get',
    params: query


  })
}


export function getList(query) {
  return request({
    url: '/retailProperty/list',
    method: 'get',
    params: query


  })
}

export function create(data) {
  return request({
    url: '/retailProperty/add',
    method: 'post',
    data
  })
}

export function update( data) {
  return request({
    url: `/retailProperty/update`,
    method: 'put',
    data
  })
}

export function deleteData(id) {
  return request({
    url: `/retailProperty/delete/?id=${id}`,
    method: 'delete'
  })
}
